using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.Encodings.Web;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace WorkOrder.Extensions
{
 
public static class JsonConfig
{
    public static readonly JsonSerializerOptions JsonOptions = new()
    {
        WriteIndented = true,                // 美化格式
        Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping, // 支持中文
        PropertyNamingPolicy = null,         // 保持属性大小写
        DictionaryKeyPolicy = null,          // 保持字典键大小写
        DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull // 忽略空值
    }; 
}
}